#include "tp6806.h"
#include "osd_func.h"
#include "app_osd_res.h"



void get_app_osd_res_version(void)
{
	unsigned char cnt = 0;
	unsigned char xdata buf[APP_OSD_VERSION_CNT];

	if (spi_dma(buf, APP_OSD_VERSION_CODE_OFFSET, APP_OSD_VERSION_CNT)
		!= EXIT_SUCCESS) {
		DBGMSG(("DMA failed, can't get Resource Header!\n"));
	}
	if (*((unsigned long *)(buf + APP_OSD_HEADER_START_IDX))
		!= APP_OSD_MAGIC_START) {
		DBGMSG(("Header first magic number mismatch!\n"));
	}
	if (*((unsigned long *)(buf + APP_OSD_HEADER_END_IDX))
		!= APP_OSD_MAGIC_END) {
		DBGMSG(("Header last magic number mismatch!\n"));
	}
	/* You can get version number here,
	* probably you want to do something like checking the version. */
	DBGMSG(("APP_OSD Resource ID:%02bX%02bX Version:v%bd.%bd Size:%ld\n",
		buf[APP_OSD_RES_VER_IDX + 0],
		buf[APP_OSD_RES_VER_IDX + 1],
		buf[APP_OSD_RES_VER_IDX + 2],
		buf[APP_OSD_RES_VER_IDX + 3],
		*((unsigned long *)(buf + APP_OSD_RES_SIZE_IDX))));
}






void show_BackLightMain_page (void)
{
	osd_init();

	spi_load_rls(BackLightMain_com_1_rlsatt_ptr, BackLightMain_com_1_rlsatt_addr,
			BackLightMain_com_1_rlsatt_size, BACKLIGHTMAIN_CODE_OFFSET);

	spi_load_rls(BackLightMain__dummy2__rlsatt_ptr, BackLightMain__dummy2__rlsatt_addr,
			BackLightMain__dummy2__rlsatt_size, BACKLIGHTMAIN_CODE_OFFSET); // dummy


	spi_load_rls(BackLightMain_com_0_rlsatt_ptr, BackLightMain_com_0_rlsatt_addr,
			BackLightMain_com_0_rlsatt_size, BACKLIGHTMAIN_CODE_OFFSET);

	spi_load_rls(BackLightMain__dummy3__rlsatt_ptr, BackLightMain__dummy3__rlsatt_addr,
			BackLightMain__dummy3__rlsatt_size, BACKLIGHTMAIN_CODE_OFFSET); // dummy




	row_A_disable();
	row_B_disable();
	row_C_disable();
	row_D_disable();
	rlg_A_disable();
	rlg_B_disable();
	rlg_C_disable();
	rlg_D_disable();
	rls_C_config(BackLightMain_RLs_Thread_C_regaddr);
	rls_D_config(BackLightMain_RLs_Thread_D_regaddr);
	win_A_disable();
	win_B_disable();
	win_C_disable();
	win_D_disable();
	mat_A_disable();
	mat_B_disable();
	mat_C_disable();
	mat_D_disable();


	osd_wr_rls_en(RLS_D_EN | RLS_C_EN);
	osd_wr_en(OSD_CTRL_EN | OSD_RLS_EN);
}






void show_BackLight_1_page (void)
{
	osd_init();

	spi_load_rls(BackLight_1_com_2_rlsatt_ptr, BackLight_1_com_2_rlsatt_addr,
			BackLight_1_com_2_rlsatt_size, BACKLIGHT_1_CODE_OFFSET);

	spi_load_rls(BackLight_1__dummy1__rlsatt_ptr, BackLight_1__dummy1__rlsatt_addr,
			BackLight_1__dummy1__rlsatt_size, BACKLIGHT_1_CODE_OFFSET); // dummy


	spi_load_rls(BackLight_1_com_1_rlsatt_ptr, BackLight_1_com_1_rlsatt_addr,
			BackLight_1_com_1_rlsatt_size, BACKLIGHT_1_CODE_OFFSET);

	spi_load_rls(BackLight_1__dummy2__rlsatt_ptr, BackLight_1__dummy2__rlsatt_addr,
			BackLight_1__dummy2__rlsatt_size, BACKLIGHT_1_CODE_OFFSET); // dummy


	spi_load_rls(BackLight_1_com_0_rlsatt_ptr, BackLight_1_com_0_rlsatt_addr,
			BackLight_1_com_0_rlsatt_size, BACKLIGHT_1_CODE_OFFSET);

	spi_load_rls(BackLight_1__dummy3__rlsatt_ptr, BackLight_1__dummy3__rlsatt_addr,
			BackLight_1__dummy3__rlsatt_size, BACKLIGHT_1_CODE_OFFSET); // dummy




	row_A_disable();
	row_B_disable();
	row_C_disable();
	row_D_disable();
	rlg_A_disable();
	rlg_B_disable();
	rlg_C_disable();
	rlg_D_disable();
	rls_B_config(BackLight_1_RLs_Thread_B_regaddr);
	rls_C_config(BackLight_1_RLs_Thread_C_regaddr);
	rls_D_config(BackLight_1_RLs_Thread_D_regaddr);
	win_A_disable();
	win_B_disable();
	win_C_disable();
	win_D_disable();
	mat_A_disable();
	mat_B_disable();
	mat_C_disable();
	mat_D_disable();


	osd_wr_rls_en(RLS_D_EN | RLS_C_EN | RLS_B_EN);
	osd_wr_en(OSD_CTRL_EN | OSD_RLS_EN);
}






void show_BackLight_2_page (void)
{
	osd_init();

	spi_load_rls(BackLight_2_com_2_rlsatt_ptr, BackLight_2_com_2_rlsatt_addr,
			BackLight_2_com_2_rlsatt_size, BACKLIGHT_2_CODE_OFFSET);

	spi_load_rls(BackLight_2__dummy1__rlsatt_ptr, BackLight_2__dummy1__rlsatt_addr,
			BackLight_2__dummy1__rlsatt_size, BACKLIGHT_2_CODE_OFFSET); // dummy


	spi_load_rls(BackLight_2_com_1_rlsatt_ptr, BackLight_2_com_1_rlsatt_addr,
			BackLight_2_com_1_rlsatt_size, BACKLIGHT_2_CODE_OFFSET);

	spi_load_rls(BackLight_2__dummy2__rlsatt_ptr, BackLight_2__dummy2__rlsatt_addr,
			BackLight_2__dummy2__rlsatt_size, BACKLIGHT_2_CODE_OFFSET); // dummy


	spi_load_rls(BackLight_2_com_0_rlsatt_ptr, BackLight_2_com_0_rlsatt_addr,
			BackLight_2_com_0_rlsatt_size, BACKLIGHT_2_CODE_OFFSET);

	spi_load_rls(BackLight_2__dummy3__rlsatt_ptr, BackLight_2__dummy3__rlsatt_addr,
			BackLight_2__dummy3__rlsatt_size, BACKLIGHT_2_CODE_OFFSET); // dummy




	row_A_disable();
	row_B_disable();
	row_C_disable();
	row_D_disable();
	rlg_A_disable();
	rlg_B_disable();
	rlg_C_disable();
	rlg_D_disable();
	rls_B_config(BackLight_2_RLs_Thread_B_regaddr);
	rls_C_config(BackLight_2_RLs_Thread_C_regaddr);
	rls_D_config(BackLight_2_RLs_Thread_D_regaddr);
	win_A_disable();
	win_B_disable();
	win_C_disable();
	win_D_disable();
	mat_A_disable();
	mat_B_disable();
	mat_C_disable();
	mat_D_disable();


	osd_wr_rls_en(RLS_D_EN | RLS_C_EN | RLS_B_EN);
	osd_wr_en(OSD_CTRL_EN | OSD_RLS_EN);
}






void show_BackLight_3_page (void)
{
	osd_init();

	spi_load_rls(BackLight_3_com_2_rlsatt_ptr, BackLight_3_com_2_rlsatt_addr,
			BackLight_3_com_2_rlsatt_size, BACKLIGHT_3_CODE_OFFSET);

	spi_load_rls(BackLight_3__dummy1__rlsatt_ptr, BackLight_3__dummy1__rlsatt_addr,
			BackLight_3__dummy1__rlsatt_size, BACKLIGHT_3_CODE_OFFSET); // dummy


	spi_load_rls(BackLight_3_com_1_rlsatt_ptr, BackLight_3_com_1_rlsatt_addr,
			BackLight_3_com_1_rlsatt_size, BACKLIGHT_3_CODE_OFFSET);

	spi_load_rls(BackLight_3__dummy2__rlsatt_ptr, BackLight_3__dummy2__rlsatt_addr,
			BackLight_3__dummy2__rlsatt_size, BACKLIGHT_3_CODE_OFFSET); // dummy


	spi_load_rls(BackLight_3_com_0_rlsatt_ptr, BackLight_3_com_0_rlsatt_addr,
			BackLight_3_com_0_rlsatt_size, BACKLIGHT_3_CODE_OFFSET);

	spi_load_rls(BackLight_3__dummy3__rlsatt_ptr, BackLight_3__dummy3__rlsatt_addr,
			BackLight_3__dummy3__rlsatt_size, BACKLIGHT_3_CODE_OFFSET); // dummy




	row_A_disable();
	row_B_disable();
	row_C_disable();
	row_D_disable();
	rlg_A_disable();
	rlg_B_disable();
	rlg_C_disable();
	rlg_D_disable();
	rls_B_config(BackLight_3_RLs_Thread_B_regaddr);
	rls_C_config(BackLight_3_RLs_Thread_C_regaddr);
	rls_D_config(BackLight_3_RLs_Thread_D_regaddr);
	win_A_disable();
	win_B_disable();
	win_C_disable();
	win_D_disable();
	mat_A_disable();
	mat_B_disable();
	mat_C_disable();
	mat_D_disable();


	osd_wr_rls_en(RLS_D_EN | RLS_C_EN | RLS_B_EN);
	osd_wr_en(OSD_CTRL_EN | OSD_RLS_EN);
}






void show_BackLight_4_page (void)
{
	osd_init();

	spi_load_rls(BackLight_4_com_2_rlsatt_ptr, BackLight_4_com_2_rlsatt_addr,
			BackLight_4_com_2_rlsatt_size, BACKLIGHT_4_CODE_OFFSET);

	spi_load_rls(BackLight_4__dummy1__rlsatt_ptr, BackLight_4__dummy1__rlsatt_addr,
			BackLight_4__dummy1__rlsatt_size, BACKLIGHT_4_CODE_OFFSET); // dummy


	spi_load_rls(BackLight_4_com_0_rlsatt_ptr, BackLight_4_com_0_rlsatt_addr,
			BackLight_4_com_0_rlsatt_size, BACKLIGHT_4_CODE_OFFSET);

	spi_load_rls(BackLight_4__dummy2__rlsatt_ptr, BackLight_4__dummy2__rlsatt_addr,
			BackLight_4__dummy2__rlsatt_size, BACKLIGHT_4_CODE_OFFSET); // dummy


	spi_load_rls(BackLight_4_com_1_rlsatt_ptr, BackLight_4_com_1_rlsatt_addr,
			BackLight_4_com_1_rlsatt_size, BACKLIGHT_4_CODE_OFFSET);

	spi_load_rls(BackLight_4__dummy3__rlsatt_ptr, BackLight_4__dummy3__rlsatt_addr,
			BackLight_4__dummy3__rlsatt_size, BACKLIGHT_4_CODE_OFFSET); // dummy




	row_A_disable();
	row_B_disable();
	row_C_disable();
	row_D_disable();
	rlg_A_disable();
	rlg_B_disable();
	rlg_C_disable();
	rlg_D_disable();
	rls_B_config(BackLight_4_RLs_Thread_B_regaddr);
	rls_C_config(BackLight_4_RLs_Thread_C_regaddr);
	rls_D_config(BackLight_4_RLs_Thread_D_regaddr);
	win_A_disable();
	win_B_disable();
	win_C_disable();
	win_D_disable();
	mat_A_disable();
	mat_B_disable();
	mat_C_disable();
	mat_D_disable();


	osd_wr_rls_en(RLS_D_EN | RLS_C_EN | RLS_B_EN);
	osd_wr_en(OSD_CTRL_EN | OSD_RLS_EN);
}






void show_BackLight_5_page (void)
{
	osd_init();

	spi_load_rls(BackLight_5_com_2_rlsatt_ptr, BackLight_5_com_2_rlsatt_addr,
			BackLight_5_com_2_rlsatt_size, BACKLIGHT_5_CODE_OFFSET);

	spi_load_rls(BackLight_5__dummy1__rlsatt_ptr, BackLight_5__dummy1__rlsatt_addr,
			BackLight_5__dummy1__rlsatt_size, BACKLIGHT_5_CODE_OFFSET); // dummy


	spi_load_rls(BackLight_5_com_0_rlsatt_ptr, BackLight_5_com_0_rlsatt_addr,
			BackLight_5_com_0_rlsatt_size, BACKLIGHT_5_CODE_OFFSET);

	spi_load_rls(BackLight_5__dummy2__rlsatt_ptr, BackLight_5__dummy2__rlsatt_addr,
			BackLight_5__dummy2__rlsatt_size, BACKLIGHT_5_CODE_OFFSET); // dummy


	spi_load_rls(BackLight_5_com_1_rlsatt_ptr, BackLight_5_com_1_rlsatt_addr,
			BackLight_5_com_1_rlsatt_size, BACKLIGHT_5_CODE_OFFSET);

	spi_load_rls(BackLight_5__dummy3__rlsatt_ptr, BackLight_5__dummy3__rlsatt_addr,
			BackLight_5__dummy3__rlsatt_size, BACKLIGHT_5_CODE_OFFSET); // dummy




	row_A_disable();
	row_B_disable();
	row_C_disable();
	row_D_disable();
	rlg_A_disable();
	rlg_B_disable();
	rlg_C_disable();
	rlg_D_disable();
	rls_B_config(BackLight_5_RLs_Thread_B_regaddr);
	rls_C_config(BackLight_5_RLs_Thread_C_regaddr);
	rls_D_config(BackLight_5_RLs_Thread_D_regaddr);
	win_A_disable();
	win_B_disable();
	win_C_disable();
	win_D_disable();
	mat_A_disable();
	mat_B_disable();
	mat_C_disable();
	mat_D_disable();


	osd_wr_rls_en(RLS_D_EN | RLS_C_EN | RLS_B_EN);
	osd_wr_en(OSD_CTRL_EN | OSD_RLS_EN);
}






void show_BackLight_6_page (void)
{
	osd_init();

	spi_load_rls(BackLight_6_com_2_rlsatt_ptr, BackLight_6_com_2_rlsatt_addr,
			BackLight_6_com_2_rlsatt_size, BACKLIGHT_6_CODE_OFFSET);

	spi_load_rls(BackLight_6__dummy1__rlsatt_ptr, BackLight_6__dummy1__rlsatt_addr,
			BackLight_6__dummy1__rlsatt_size, BACKLIGHT_6_CODE_OFFSET); // dummy


	spi_load_rls(BackLight_6_com_0_rlsatt_ptr, BackLight_6_com_0_rlsatt_addr,
			BackLight_6_com_0_rlsatt_size, BACKLIGHT_6_CODE_OFFSET);

	spi_load_rls(BackLight_6__dummy2__rlsatt_ptr, BackLight_6__dummy2__rlsatt_addr,
			BackLight_6__dummy2__rlsatt_size, BACKLIGHT_6_CODE_OFFSET); // dummy


	spi_load_rls(BackLight_6_com_1_rlsatt_ptr, BackLight_6_com_1_rlsatt_addr,
			BackLight_6_com_1_rlsatt_size, BACKLIGHT_6_CODE_OFFSET);

	spi_load_rls(BackLight_6__dummy3__rlsatt_ptr, BackLight_6__dummy3__rlsatt_addr,
			BackLight_6__dummy3__rlsatt_size, BACKLIGHT_6_CODE_OFFSET); // dummy




	row_A_disable();
	row_B_disable();
	row_C_disable();
	row_D_disable();
	rlg_A_disable();
	rlg_B_disable();
	rlg_C_disable();
	rlg_D_disable();
	rls_B_config(BackLight_6_RLs_Thread_B_regaddr);
	rls_C_config(BackLight_6_RLs_Thread_C_regaddr);
	rls_D_config(BackLight_6_RLs_Thread_D_regaddr);
	win_A_disable();
	win_B_disable();
	win_C_disable();
	win_D_disable();
	mat_A_disable();
	mat_B_disable();
	mat_C_disable();
	mat_D_disable();


	osd_wr_rls_en(RLS_D_EN | RLS_C_EN | RLS_B_EN);
	osd_wr_en(OSD_CTRL_EN | OSD_RLS_EN);
}






void show_BackLight_7_page (void)
{
	osd_init();

	spi_load_rls(BackLight_7_com_2_rlsatt_ptr, BackLight_7_com_2_rlsatt_addr,
			BackLight_7_com_2_rlsatt_size, BACKLIGHT_7_CODE_OFFSET);

	spi_load_rls(BackLight_7__dummy1__rlsatt_ptr, BackLight_7__dummy1__rlsatt_addr,
			BackLight_7__dummy1__rlsatt_size, BACKLIGHT_7_CODE_OFFSET); // dummy


	spi_load_rls(BackLight_7_com_1_rlsatt_ptr, BackLight_7_com_1_rlsatt_addr,
			BackLight_7_com_1_rlsatt_size, BACKLIGHT_7_CODE_OFFSET);

	spi_load_rls(BackLight_7__dummy2__rlsatt_ptr, BackLight_7__dummy2__rlsatt_addr,
			BackLight_7__dummy2__rlsatt_size, BACKLIGHT_7_CODE_OFFSET); // dummy


	spi_load_rls(BackLight_7_com_0_rlsatt_ptr, BackLight_7_com_0_rlsatt_addr,
			BackLight_7_com_0_rlsatt_size, BACKLIGHT_7_CODE_OFFSET);

	spi_load_rls(BackLight_7__dummy3__rlsatt_ptr, BackLight_7__dummy3__rlsatt_addr,
			BackLight_7__dummy3__rlsatt_size, BACKLIGHT_7_CODE_OFFSET); // dummy




	row_A_disable();
	row_B_disable();
	row_C_disable();
	row_D_disable();
	rlg_A_disable();
	rlg_B_disable();
	rlg_C_disable();
	rlg_D_disable();
	rls_B_config(BackLight_7_RLs_Thread_B_regaddr);
	rls_C_config(BackLight_7_RLs_Thread_C_regaddr);
	rls_D_config(BackLight_7_RLs_Thread_D_regaddr);
	win_A_disable();
	win_B_disable();
	win_C_disable();
	win_D_disable();
	mat_A_disable();
	mat_B_disable();
	mat_C_disable();
	mat_D_disable();


	osd_wr_rls_en(RLS_D_EN | RLS_C_EN | RLS_B_EN);
	osd_wr_en(OSD_CTRL_EN | OSD_RLS_EN);
}






void show_Video_Main_page (void)
{
	osd_init();

	spi_load_rls(Video_Main_com_1_rlsatt_ptr, Video_Main_com_1_rlsatt_addr,
			Video_Main_com_1_rlsatt_size, VIDEO_MAIN_CODE_OFFSET);

	spi_load_rls(Video_Main__dummy2__rlsatt_ptr, Video_Main__dummy2__rlsatt_addr,
			Video_Main__dummy2__rlsatt_size, VIDEO_MAIN_CODE_OFFSET); // dummy


	spi_load_rls(Video_Main_com_0_rlsatt_ptr, Video_Main_com_0_rlsatt_addr,
			Video_Main_com_0_rlsatt_size, VIDEO_MAIN_CODE_OFFSET);

	spi_load_rls(Video_Main__dummy3__rlsatt_ptr, Video_Main__dummy3__rlsatt_addr,
			Video_Main__dummy3__rlsatt_size, VIDEO_MAIN_CODE_OFFSET); // dummy




	row_A_disable();
	row_B_disable();
	row_C_disable();
	row_D_disable();
	rlg_A_disable();
	rlg_B_disable();
	rlg_C_disable();
	rlg_D_disable();
	rls_C_config(Video_Main_RLs_Thread_C_regaddr);
	rls_D_config(Video_Main_RLs_Thread_D_regaddr);
	win_A_disable();
	win_B_disable();
	win_C_disable();
	win_D_disable();
	mat_A_disable();
	mat_B_disable();
	mat_C_disable();
	mat_D_disable();


	osd_wr_rls_en(RLS_D_EN | RLS_C_EN);
	osd_wr_en(OSD_CTRL_EN | OSD_RLS_EN);
}






void show_Video_1_page (void)
{
	osd_init();

	spi_load_rls(Video_1_com_0_rlsatt_ptr, Video_1_com_0_rlsatt_addr,
			Video_1_com_0_rlsatt_size, VIDEO_1_CODE_OFFSET);

	spi_load_rls(Video_1__dummy1__rlsatt_ptr, Video_1__dummy1__rlsatt_addr,
			Video_1__dummy1__rlsatt_size, VIDEO_1_CODE_OFFSET); // dummy


	spi_load_rls(Video_1_com_1_rlsatt_ptr, Video_1_com_1_rlsatt_addr,
			Video_1_com_1_rlsatt_size, VIDEO_1_CODE_OFFSET);

	spi_load_rls(Video_1__dummy2__rlsatt_ptr, Video_1__dummy2__rlsatt_addr,
			Video_1__dummy2__rlsatt_size, VIDEO_1_CODE_OFFSET); // dummy


	spi_load_rls(Video_1_com_2_rlsatt_ptr, Video_1_com_2_rlsatt_addr,
			Video_1_com_2_rlsatt_size, VIDEO_1_CODE_OFFSET);

	spi_load_rls(Video_1__dummy3__rlsatt_ptr, Video_1__dummy3__rlsatt_addr,
			Video_1__dummy3__rlsatt_size, VIDEO_1_CODE_OFFSET); // dummy




	row_A_disable();
	row_B_disable();
	row_C_disable();
	row_D_disable();
	rlg_A_disable();
	rlg_B_disable();
	rlg_C_disable();
	rlg_D_disable();
	rls_B_config(Video_1_RLs_Thread_B_regaddr);
	rls_C_config(Video_1_RLs_Thread_C_regaddr);
	rls_D_config(Video_1_RLs_Thread_D_regaddr);
	win_A_disable();
	win_B_disable();
	win_C_disable();
	win_D_disable();
	mat_A_disable();
	mat_B_disable();
	mat_C_disable();
	mat_D_disable();


	osd_wr_rls_en(RLS_D_EN | RLS_C_EN | RLS_B_EN);
	osd_wr_en(OSD_CTRL_EN | OSD_RLS_EN);
}






void show_Video_2_page (void)
{
	osd_init();

	spi_load_rls(Video_2_com_2_rlsatt_ptr, Video_2_com_2_rlsatt_addr,
			Video_2_com_2_rlsatt_size, VIDEO_2_CODE_OFFSET);

	spi_load_rls(Video_2__dummy1__rlsatt_ptr, Video_2__dummy1__rlsatt_addr,
			Video_2__dummy1__rlsatt_size, VIDEO_2_CODE_OFFSET); // dummy


	spi_load_rls(Video_2_com_1_rlsatt_ptr, Video_2_com_1_rlsatt_addr,
			Video_2_com_1_rlsatt_size, VIDEO_2_CODE_OFFSET);

	spi_load_rls(Video_2__dummy2__rlsatt_ptr, Video_2__dummy2__rlsatt_addr,
			Video_2__dummy2__rlsatt_size, VIDEO_2_CODE_OFFSET); // dummy


	spi_load_rls(Video_2_com_0_rlsatt_ptr, Video_2_com_0_rlsatt_addr,
			Video_2_com_0_rlsatt_size, VIDEO_2_CODE_OFFSET);

	spi_load_rls(Video_2__dummy3__rlsatt_ptr, Video_2__dummy3__rlsatt_addr,
			Video_2__dummy3__rlsatt_size, VIDEO_2_CODE_OFFSET); // dummy




	row_A_disable();
	row_B_disable();
	row_C_disable();
	row_D_disable();
	rlg_A_disable();
	rlg_B_disable();
	rlg_C_disable();
	rlg_D_disable();
	rls_B_config(Video_2_RLs_Thread_B_regaddr);
	rls_C_config(Video_2_RLs_Thread_C_regaddr);
	rls_D_config(Video_2_RLs_Thread_D_regaddr);
	win_A_disable();
	win_B_disable();
	win_C_disable();
	win_D_disable();
	mat_A_disable();
	mat_B_disable();
	mat_C_disable();
	mat_D_disable();


	osd_wr_rls_en(RLS_D_EN | RLS_C_EN | RLS_B_EN);
	osd_wr_en(OSD_CTRL_EN | OSD_RLS_EN);
}






void show_Video_3_page (void)
{
	osd_init();

	spi_load_rls(Video_3_com_1_rlsatt_ptr, Video_3_com_1_rlsatt_addr,
			Video_3_com_1_rlsatt_size, VIDEO_3_CODE_OFFSET);

	spi_load_rls(Video_3__dummy1__rlsatt_ptr, Video_3__dummy1__rlsatt_addr,
			Video_3__dummy1__rlsatt_size, VIDEO_3_CODE_OFFSET); // dummy


	spi_load_rls(Video_3_com_0_rlsatt_ptr, Video_3_com_0_rlsatt_addr,
			Video_3_com_0_rlsatt_size, VIDEO_3_CODE_OFFSET);

	spi_load_rls(Video_3__dummy2__rlsatt_ptr, Video_3__dummy2__rlsatt_addr,
			Video_3__dummy2__rlsatt_size, VIDEO_3_CODE_OFFSET); // dummy


	spi_load_rls(Video_3_com_2_rlsatt_ptr, Video_3_com_2_rlsatt_addr,
			Video_3_com_2_rlsatt_size, VIDEO_3_CODE_OFFSET);

	spi_load_rls(Video_3__dummy3__rlsatt_ptr, Video_3__dummy3__rlsatt_addr,
			Video_3__dummy3__rlsatt_size, VIDEO_3_CODE_OFFSET); // dummy




	row_A_disable();
	row_B_disable();
	row_C_disable();
	row_D_disable();
	rlg_A_disable();
	rlg_B_disable();
	rlg_C_disable();
	rlg_D_disable();
	rls_B_config(Video_3_RLs_Thread_B_regaddr);
	rls_C_config(Video_3_RLs_Thread_C_regaddr);
	rls_D_config(Video_3_RLs_Thread_D_regaddr);
	win_A_disable();
	win_B_disable();
	win_C_disable();
	win_D_disable();
	mat_A_disable();
	mat_B_disable();
	mat_C_disable();
	mat_D_disable();


	osd_wr_rls_en(RLS_D_EN | RLS_C_EN | RLS_B_EN);
	osd_wr_en(OSD_CTRL_EN | OSD_RLS_EN);
}






void show_Video_4_page (void)
{
	osd_init();

	spi_load_rls(Video_4_com_1_rlsatt_ptr, Video_4_com_1_rlsatt_addr,
			Video_4_com_1_rlsatt_size, VIDEO_4_CODE_OFFSET);

	spi_load_rls(Video_4__dummy1__rlsatt_ptr, Video_4__dummy1__rlsatt_addr,
			Video_4__dummy1__rlsatt_size, VIDEO_4_CODE_OFFSET); // dummy


	spi_load_rls(Video_4_com_0_rlsatt_ptr, Video_4_com_0_rlsatt_addr,
			Video_4_com_0_rlsatt_size, VIDEO_4_CODE_OFFSET);

	spi_load_rls(Video_4__dummy2__rlsatt_ptr, Video_4__dummy2__rlsatt_addr,
			Video_4__dummy2__rlsatt_size, VIDEO_4_CODE_OFFSET); // dummy


	spi_load_rls(Video_4_com_2_rlsatt_ptr, Video_4_com_2_rlsatt_addr,
			Video_4_com_2_rlsatt_size, VIDEO_4_CODE_OFFSET);

	spi_load_rls(Video_4__dummy3__rlsatt_ptr, Video_4__dummy3__rlsatt_addr,
			Video_4__dummy3__rlsatt_size, VIDEO_4_CODE_OFFSET); // dummy




	row_A_disable();
	row_B_disable();
	row_C_disable();
	row_D_disable();
	rlg_A_disable();
	rlg_B_disable();
	rlg_C_disable();
	rlg_D_disable();
	rls_B_config(Video_4_RLs_Thread_B_regaddr);
	rls_C_config(Video_4_RLs_Thread_C_regaddr);
	rls_D_config(Video_4_RLs_Thread_D_regaddr);
	win_A_disable();
	win_B_disable();
	win_C_disable();
	win_D_disable();
	mat_A_disable();
	mat_B_disable();
	mat_C_disable();
	mat_D_disable();


	osd_wr_rls_en(RLS_D_EN | RLS_C_EN | RLS_B_EN);
	osd_wr_en(OSD_CTRL_EN | OSD_RLS_EN);
}






void show_Video_5_page (void)
{
	osd_init();

	spi_load_rls(Video_5_com_1_rlsatt_ptr, Video_5_com_1_rlsatt_addr,
			Video_5_com_1_rlsatt_size, VIDEO_5_CODE_OFFSET);

	spi_load_rls(Video_5__dummy1__rlsatt_ptr, Video_5__dummy1__rlsatt_addr,
			Video_5__dummy1__rlsatt_size, VIDEO_5_CODE_OFFSET); // dummy


	spi_load_rls(Video_5_com_0_rlsatt_ptr, Video_5_com_0_rlsatt_addr,
			Video_5_com_0_rlsatt_size, VIDEO_5_CODE_OFFSET);

	spi_load_rls(Video_5__dummy2__rlsatt_ptr, Video_5__dummy2__rlsatt_addr,
			Video_5__dummy2__rlsatt_size, VIDEO_5_CODE_OFFSET); // dummy


	spi_load_rls(Video_5_com_2_rlsatt_ptr, Video_5_com_2_rlsatt_addr,
			Video_5_com_2_rlsatt_size, VIDEO_5_CODE_OFFSET);

	spi_load_rls(Video_5__dummy3__rlsatt_ptr, Video_5__dummy3__rlsatt_addr,
			Video_5__dummy3__rlsatt_size, VIDEO_5_CODE_OFFSET); // dummy




	row_A_disable();
	row_B_disable();
	row_C_disable();
	row_D_disable();
	rlg_A_disable();
	rlg_B_disable();
	rlg_C_disable();
	rlg_D_disable();
	rls_B_config(Video_5_RLs_Thread_B_regaddr);
	rls_C_config(Video_5_RLs_Thread_C_regaddr);
	rls_D_config(Video_5_RLs_Thread_D_regaddr);
	win_A_disable();
	win_B_disable();
	win_C_disable();
	win_D_disable();
	mat_A_disable();
	mat_B_disable();
	mat_C_disable();
	mat_D_disable();


	osd_wr_rls_en(RLS_D_EN | RLS_C_EN | RLS_B_EN);
	osd_wr_en(OSD_CTRL_EN | OSD_RLS_EN);
}






void show_Video_6_page (void)
{
	osd_init();

	spi_load_rls(Video_6_com_1_rlsatt_ptr, Video_6_com_1_rlsatt_addr,
			Video_6_com_1_rlsatt_size, VIDEO_6_CODE_OFFSET);

	spi_load_rls(Video_6__dummy1__rlsatt_ptr, Video_6__dummy1__rlsatt_addr,
			Video_6__dummy1__rlsatt_size, VIDEO_6_CODE_OFFSET); // dummy


	spi_load_rls(Video_6_com_2_rlsatt_ptr, Video_6_com_2_rlsatt_addr,
			Video_6_com_2_rlsatt_size, VIDEO_6_CODE_OFFSET);

	spi_load_rls(Video_6__dummy2__rlsatt_ptr, Video_6__dummy2__rlsatt_addr,
			Video_6__dummy2__rlsatt_size, VIDEO_6_CODE_OFFSET); // dummy


	spi_load_rls(Video_6_com_0_rlsatt_ptr, Video_6_com_0_rlsatt_addr,
			Video_6_com_0_rlsatt_size, VIDEO_6_CODE_OFFSET);

	spi_load_rls(Video_6__dummy3__rlsatt_ptr, Video_6__dummy3__rlsatt_addr,
			Video_6__dummy3__rlsatt_size, VIDEO_6_CODE_OFFSET); // dummy




	row_A_disable();
	row_B_disable();
	row_C_disable();
	row_D_disable();
	rlg_A_disable();
	rlg_B_disable();
	rlg_C_disable();
	rlg_D_disable();
	rls_B_config(Video_6_RLs_Thread_B_regaddr);
	rls_C_config(Video_6_RLs_Thread_C_regaddr);
	rls_D_config(Video_6_RLs_Thread_D_regaddr);
	win_A_disable();
	win_B_disable();
	win_C_disable();
	win_D_disable();
	mat_A_disable();
	mat_B_disable();
	mat_C_disable();
	mat_D_disable();


	osd_wr_rls_en(RLS_D_EN | RLS_C_EN | RLS_B_EN);
	osd_wr_en(OSD_CTRL_EN | OSD_RLS_EN);
}






void show_Video_7_page (void)
{
	osd_init();

	spi_load_rls(Video_7_com_2_rlsatt_ptr, Video_7_com_2_rlsatt_addr,
			Video_7_com_2_rlsatt_size, VIDEO_7_CODE_OFFSET);

	spi_load_rls(Video_7__dummy1__rlsatt_ptr, Video_7__dummy1__rlsatt_addr,
			Video_7__dummy1__rlsatt_size, VIDEO_7_CODE_OFFSET); // dummy


	spi_load_rls(Video_7_com_1_rlsatt_ptr, Video_7_com_1_rlsatt_addr,
			Video_7_com_1_rlsatt_size, VIDEO_7_CODE_OFFSET);

	spi_load_rls(Video_7__dummy2__rlsatt_ptr, Video_7__dummy2__rlsatt_addr,
			Video_7__dummy2__rlsatt_size, VIDEO_7_CODE_OFFSET); // dummy


	spi_load_rls(Video_7_com_0_rlsatt_ptr, Video_7_com_0_rlsatt_addr,
			Video_7_com_0_rlsatt_size, VIDEO_7_CODE_OFFSET);

	spi_load_rls(Video_7__dummy3__rlsatt_ptr, Video_7__dummy3__rlsatt_addr,
			Video_7__dummy3__rlsatt_size, VIDEO_7_CODE_OFFSET); // dummy




	row_A_disable();
	row_B_disable();
	row_C_disable();
	row_D_disable();
	rlg_A_disable();
	rlg_B_disable();
	rlg_C_disable();
	rlg_D_disable();
	rls_B_config(Video_7_RLs_Thread_B_regaddr);
	rls_C_config(Video_7_RLs_Thread_C_regaddr);
	rls_D_config(Video_7_RLs_Thread_D_regaddr);
	win_A_disable();
	win_B_disable();
	win_C_disable();
	win_D_disable();
	mat_A_disable();
	mat_B_disable();
	mat_C_disable();
	mat_D_disable();


	osd_wr_rls_en(RLS_D_EN | RLS_C_EN | RLS_B_EN);
	osd_wr_en(OSD_CTRL_EN | OSD_RLS_EN);
}






void show_Zoom_Main_page (void)
{
	osd_init();

	spi_load_rls(Zoom_Main_com_0_rlsatt_ptr, Zoom_Main_com_0_rlsatt_addr,
			Zoom_Main_com_0_rlsatt_size, ZOOM_MAIN_CODE_OFFSET);

	spi_load_rls(Zoom_Main__dummy2__rlsatt_ptr, Zoom_Main__dummy2__rlsatt_addr,
			Zoom_Main__dummy2__rlsatt_size, ZOOM_MAIN_CODE_OFFSET); // dummy


	spi_load_rls(Zoom_Main_com_1_rlsatt_ptr, Zoom_Main_com_1_rlsatt_addr,
			Zoom_Main_com_1_rlsatt_size, ZOOM_MAIN_CODE_OFFSET);

	spi_load_rls(Zoom_Main__dummy3__rlsatt_ptr, Zoom_Main__dummy3__rlsatt_addr,
			Zoom_Main__dummy3__rlsatt_size, ZOOM_MAIN_CODE_OFFSET); // dummy




	row_A_disable();
	row_B_disable();
	row_C_disable();
	row_D_disable();
	rlg_A_disable();
	rlg_B_disable();
	rlg_C_disable();
	rlg_D_disable();
	rls_C_config(Zoom_Main_RLs_Thread_C_regaddr);
	rls_D_config(Zoom_Main_RLs_Thread_D_regaddr);
	win_A_disable();
	win_B_disable();
	win_C_disable();
	win_D_disable();
	mat_A_disable();
	mat_B_disable();
	mat_C_disable();
	mat_D_disable();


	osd_wr_rls_en(RLS_D_EN | RLS_C_EN);
	osd_wr_en(OSD_CTRL_EN | OSD_RLS_EN);
}






void show_Zoom_1_page (void)
{
	osd_init();

	spi_load_rls(Zoom_1_com_2_rlsatt_ptr, Zoom_1_com_2_rlsatt_addr,
			Zoom_1_com_2_rlsatt_size, ZOOM_1_CODE_OFFSET);

	spi_load_rls(Zoom_1__dummy1__rlsatt_ptr, Zoom_1__dummy1__rlsatt_addr,
			Zoom_1__dummy1__rlsatt_size, ZOOM_1_CODE_OFFSET); // dummy


	spi_load_rls(Zoom_1_com_1_rlsatt_ptr, Zoom_1_com_1_rlsatt_addr,
			Zoom_1_com_1_rlsatt_size, ZOOM_1_CODE_OFFSET);

	spi_load_rls(Zoom_1__dummy2__rlsatt_ptr, Zoom_1__dummy2__rlsatt_addr,
			Zoom_1__dummy2__rlsatt_size, ZOOM_1_CODE_OFFSET); // dummy


	spi_load_rls(Zoom_1_com_0_rlsatt_ptr, Zoom_1_com_0_rlsatt_addr,
			Zoom_1_com_0_rlsatt_size, ZOOM_1_CODE_OFFSET);

	spi_load_rls(Zoom_1__dummy3__rlsatt_ptr, Zoom_1__dummy3__rlsatt_addr,
			Zoom_1__dummy3__rlsatt_size, ZOOM_1_CODE_OFFSET); // dummy




	row_A_disable();
	row_B_disable();
	row_C_disable();
	row_D_disable();
	rlg_A_disable();
	rlg_B_disable();
	rlg_C_disable();
	rlg_D_disable();
	rls_B_config(Zoom_1_RLs_Thread_B_regaddr);
	rls_C_config(Zoom_1_RLs_Thread_C_regaddr);
	rls_D_config(Zoom_1_RLs_Thread_D_regaddr);
	win_A_disable();
	win_B_disable();
	win_C_disable();
	win_D_disable();
	mat_A_disable();
	mat_B_disable();
	mat_C_disable();
	mat_D_disable();


	osd_wr_rls_en(RLS_D_EN | RLS_C_EN | RLS_B_EN);
	osd_wr_en(OSD_CTRL_EN | OSD_RLS_EN);
}






void show_Zoom_2_page (void)
{
	osd_init();

	spi_load_rls(Zoom_2_com_2_rlsatt_ptr, Zoom_2_com_2_rlsatt_addr,
			Zoom_2_com_2_rlsatt_size, ZOOM_2_CODE_OFFSET);

	spi_load_rls(Zoom_2__dummy1__rlsatt_ptr, Zoom_2__dummy1__rlsatt_addr,
			Zoom_2__dummy1__rlsatt_size, ZOOM_2_CODE_OFFSET); // dummy


	spi_load_rls(Zoom_2_com_1_rlsatt_ptr, Zoom_2_com_1_rlsatt_addr,
			Zoom_2_com_1_rlsatt_size, ZOOM_2_CODE_OFFSET);

	spi_load_rls(Zoom_2__dummy2__rlsatt_ptr, Zoom_2__dummy2__rlsatt_addr,
			Zoom_2__dummy2__rlsatt_size, ZOOM_2_CODE_OFFSET); // dummy


	spi_load_rls(Zoom_2_com_0_rlsatt_ptr, Zoom_2_com_0_rlsatt_addr,
			Zoom_2_com_0_rlsatt_size, ZOOM_2_CODE_OFFSET);

	spi_load_rls(Zoom_2__dummy3__rlsatt_ptr, Zoom_2__dummy3__rlsatt_addr,
			Zoom_2__dummy3__rlsatt_size, ZOOM_2_CODE_OFFSET); // dummy




	row_A_disable();
	row_B_disable();
	row_C_disable();
	row_D_disable();
	rlg_A_disable();
	rlg_B_disable();
	rlg_C_disable();
	rlg_D_disable();
	rls_B_config(Zoom_2_RLs_Thread_B_regaddr);
	rls_C_config(Zoom_2_RLs_Thread_C_regaddr);
	rls_D_config(Zoom_2_RLs_Thread_D_regaddr);
	win_A_disable();
	win_B_disable();
	win_C_disable();
	win_D_disable();
	mat_A_disable();
	mat_B_disable();
	mat_C_disable();
	mat_D_disable();


	osd_wr_rls_en(RLS_D_EN | RLS_C_EN | RLS_B_EN);
	osd_wr_en(OSD_CTRL_EN | OSD_RLS_EN);
}






void show_Zoom_3_page (void)
{
	osd_init();

	spi_load_rls(Zoom_3_com_2_rlsatt_ptr, Zoom_3_com_2_rlsatt_addr,
			Zoom_3_com_2_rlsatt_size, ZOOM_3_CODE_OFFSET);

	spi_load_rls(Zoom_3__dummy1__rlsatt_ptr, Zoom_3__dummy1__rlsatt_addr,
			Zoom_3__dummy1__rlsatt_size, ZOOM_3_CODE_OFFSET); // dummy


	spi_load_rls(Zoom_3_com_0_rlsatt_ptr, Zoom_3_com_0_rlsatt_addr,
			Zoom_3_com_0_rlsatt_size, ZOOM_3_CODE_OFFSET);

	spi_load_rls(Zoom_3__dummy2__rlsatt_ptr, Zoom_3__dummy2__rlsatt_addr,
			Zoom_3__dummy2__rlsatt_size, ZOOM_3_CODE_OFFSET); // dummy


	spi_load_rls(Zoom_3_com_1_rlsatt_ptr, Zoom_3_com_1_rlsatt_addr,
			Zoom_3_com_1_rlsatt_size, ZOOM_3_CODE_OFFSET);

	spi_load_rls(Zoom_3__dummy3__rlsatt_ptr, Zoom_3__dummy3__rlsatt_addr,
			Zoom_3__dummy3__rlsatt_size, ZOOM_3_CODE_OFFSET); // dummy




	row_A_disable();
	row_B_disable();
	row_C_disable();
	row_D_disable();
	rlg_A_disable();
	rlg_B_disable();
	rlg_C_disable();
	rlg_D_disable();
	rls_B_config(Zoom_3_RLs_Thread_B_regaddr);
	rls_C_config(Zoom_3_RLs_Thread_C_regaddr);
	rls_D_config(Zoom_3_RLs_Thread_D_regaddr);
	win_A_disable();
	win_B_disable();
	win_C_disable();
	win_D_disable();
	mat_A_disable();
	mat_B_disable();
	mat_C_disable();
	mat_D_disable();


	osd_wr_rls_en(RLS_D_EN | RLS_C_EN | RLS_B_EN);
	osd_wr_en(OSD_CTRL_EN | OSD_RLS_EN);
}






void show_err_1_page (void)
{
	osd_init();

	spi_load_rls(err_1_com_0_rlsatt_ptr, err_1_com_0_rlsatt_addr,
			err_1_com_0_rlsatt_size, ERR_1_CODE_OFFSET);

	spi_load_rls(err_1__dummy0__rlsatt_ptr, err_1__dummy0__rlsatt_addr,
			err_1__dummy0__rlsatt_size, ERR_1_CODE_OFFSET); // dummy


	spi_load_rls(err_1_com_2_rlsatt_ptr, err_1_com_2_rlsatt_addr,
			err_1_com_2_rlsatt_size, ERR_1_CODE_OFFSET);

	spi_load_rls(err_1__dummy1__rlsatt_ptr, err_1__dummy1__rlsatt_addr,
			err_1__dummy1__rlsatt_size, ERR_1_CODE_OFFSET); // dummy


	spi_load_rls(err_1_com_1_rlsatt_ptr, err_1_com_1_rlsatt_addr,
			err_1_com_1_rlsatt_size, ERR_1_CODE_OFFSET);

	spi_load_rls(err_1__dummy2__rlsatt_ptr, err_1__dummy2__rlsatt_addr,
			err_1__dummy2__rlsatt_size, ERR_1_CODE_OFFSET); // dummy


	spi_load_rls(err_1_com_3_rlsatt_ptr, err_1_com_3_rlsatt_addr,
			err_1_com_3_rlsatt_size, ERR_1_CODE_OFFSET);

	spi_load_rls(err_1__dummy3__rlsatt_ptr, err_1__dummy3__rlsatt_addr,
			err_1__dummy3__rlsatt_size, ERR_1_CODE_OFFSET); // dummy




	row_A_disable();
	row_B_disable();
	row_C_disable();
	row_D_disable();
	rlg_A_disable();
	rlg_B_disable();
	rlg_C_disable();
	rlg_D_disable();
	rls_A_config(err_1_RLs_Thread_A_regaddr);
	rls_B_config(err_1_RLs_Thread_B_regaddr);
	rls_C_config(err_1_RLs_Thread_C_regaddr);
	rls_D_config(err_1_RLs_Thread_D_regaddr);
	win_A_disable();
	win_B_disable();
	win_C_disable();
	win_D_disable();
	mat_A_disable();
	mat_B_disable();
	mat_C_disable();
	mat_D_disable();


	osd_wr_rls_en(RLS_D_EN | RLS_C_EN | RLS_B_EN | RLS_A_EN);
	osd_wr_en(OSD_CTRL_EN | OSD_RLS_EN);
}






void show_err_2_page (void)
{
	osd_init();

	spi_load_rls(err_2_com_3_rlsatt_ptr, err_2_com_3_rlsatt_addr,
			err_2_com_3_rlsatt_size, ERR_2_CODE_OFFSET);

	spi_load_rls(err_2__dummy0__rlsatt_ptr, err_2__dummy0__rlsatt_addr,
			err_2__dummy0__rlsatt_size, ERR_2_CODE_OFFSET); // dummy


	spi_load_rls(err_2_com_1_rlsatt_ptr, err_2_com_1_rlsatt_addr,
			err_2_com_1_rlsatt_size, ERR_2_CODE_OFFSET);

	spi_load_rls(err_2__dummy1__rlsatt_ptr, err_2__dummy1__rlsatt_addr,
			err_2__dummy1__rlsatt_size, ERR_2_CODE_OFFSET); // dummy


	spi_load_rls(err_2_com_0_rlsatt_ptr, err_2_com_0_rlsatt_addr,
			err_2_com_0_rlsatt_size, ERR_2_CODE_OFFSET);

	spi_load_rls(err_2__dummy2__rlsatt_ptr, err_2__dummy2__rlsatt_addr,
			err_2__dummy2__rlsatt_size, ERR_2_CODE_OFFSET); // dummy


	spi_load_rls(err_2_com_2_rlsatt_ptr, err_2_com_2_rlsatt_addr,
			err_2_com_2_rlsatt_size, ERR_2_CODE_OFFSET);

	spi_load_rls(err_2__dummy3__rlsatt_ptr, err_2__dummy3__rlsatt_addr,
			err_2__dummy3__rlsatt_size, ERR_2_CODE_OFFSET); // dummy




	row_A_disable();
	row_B_disable();
	row_C_disable();
	row_D_disable();
	rlg_A_disable();
	rlg_B_disable();
	rlg_C_disable();
	rlg_D_disable();
	rls_A_config(err_2_RLs_Thread_A_regaddr);
	rls_B_config(err_2_RLs_Thread_B_regaddr);
	rls_C_config(err_2_RLs_Thread_C_regaddr);
	rls_D_config(err_2_RLs_Thread_D_regaddr);
	win_A_disable();
	win_B_disable();
	win_C_disable();
	win_D_disable();
	mat_A_disable();
	mat_B_disable();
	mat_C_disable();
	mat_D_disable();


	osd_wr_rls_en(RLS_D_EN | RLS_C_EN | RLS_B_EN | RLS_A_EN);
	osd_wr_en(OSD_CTRL_EN | OSD_RLS_EN);
}






void show_Recovery_page (void)
{
	osd_init();

	spi_load_rls(Recovery_com_3_rlsatt_ptr, Recovery_com_3_rlsatt_addr,
			Recovery_com_3_rlsatt_size, RECOVERY_CODE_OFFSET);

	spi_load_rls(Recovery__dummy0__rlsatt_ptr, Recovery__dummy0__rlsatt_addr,
			Recovery__dummy0__rlsatt_size, RECOVERY_CODE_OFFSET); // dummy


	spi_load_rls(Recovery_com_2_rlsatt_ptr, Recovery_com_2_rlsatt_addr,
			Recovery_com_2_rlsatt_size, RECOVERY_CODE_OFFSET);

	spi_load_rls(Recovery__dummy1__rlsatt_ptr, Recovery__dummy1__rlsatt_addr,
			Recovery__dummy1__rlsatt_size, RECOVERY_CODE_OFFSET); // dummy


	spi_load_rls(Recovery_com_1_rlsatt_ptr, Recovery_com_1_rlsatt_addr,
			Recovery_com_1_rlsatt_size, RECOVERY_CODE_OFFSET);

	spi_load_rls(Recovery__dummy2__rlsatt_ptr, Recovery__dummy2__rlsatt_addr,
			Recovery__dummy2__rlsatt_size, RECOVERY_CODE_OFFSET); // dummy


	spi_load_rls(Recovery_com_0_rlsatt_ptr, Recovery_com_0_rlsatt_addr,
			Recovery_com_0_rlsatt_size, RECOVERY_CODE_OFFSET);

	spi_load_rls(Recovery__dummy3__rlsatt_ptr, Recovery__dummy3__rlsatt_addr,
			Recovery__dummy3__rlsatt_size, RECOVERY_CODE_OFFSET); // dummy




	row_A_disable();
	row_B_disable();
	row_C_disable();
	row_D_disable();
	rlg_A_disable();
	rlg_B_disable();
	rlg_C_disable();
	rlg_D_disable();
	rls_A_config(Recovery_RLs_Thread_A_regaddr);
	rls_B_config(Recovery_RLs_Thread_B_regaddr);
	rls_C_config(Recovery_RLs_Thread_C_regaddr);
	rls_D_config(Recovery_RLs_Thread_D_regaddr);
	win_A_disable();
	win_B_disable();
	win_C_disable();
	win_D_disable();
	mat_A_disable();
	mat_B_disable();
	mat_C_disable();
	mat_D_disable();


	osd_wr_rls_en(RLS_D_EN | RLS_C_EN | RLS_B_EN | RLS_A_EN);
	osd_wr_en(OSD_CTRL_EN | OSD_RLS_EN);
}






void show_Start_page (void)
{
	osd_init();

	spi_load_rls(Start_com_1_rlsatt_ptr, Start_com_1_rlsatt_addr,
			Start_com_1_rlsatt_size, START_CODE_OFFSET);

	spi_load_rls(Start__dummy2__rlsatt_ptr, Start__dummy2__rlsatt_addr,
			Start__dummy2__rlsatt_size, START_CODE_OFFSET); // dummy


	spi_load_rls(Start_com_0_rlsatt_ptr, Start_com_0_rlsatt_addr,
			Start_com_0_rlsatt_size, START_CODE_OFFSET);

	spi_load_rls(Start__dummy3__rlsatt_ptr, Start__dummy3__rlsatt_addr,
			Start__dummy3__rlsatt_size, START_CODE_OFFSET); // dummy




	row_A_disable();
	row_B_disable();
	row_C_disable();
	row_D_disable();
	rlg_A_disable();
	rlg_B_disable();
	rlg_C_disable();
	rlg_D_disable();
	rls_C_config(Start_RLs_Thread_C_regaddr);
	rls_D_config(Start_RLs_Thread_D_regaddr);
	win_A_disable();
	win_B_disable();
	win_C_disable();
	win_D_disable();
	mat_A_disable();
	mat_B_disable();
	mat_C_disable();
	mat_D_disable();


	osd_wr_rls_en(RLS_D_EN | RLS_C_EN);
	osd_wr_en(OSD_CTRL_EN | OSD_RLS_EN);
}

